package com.jilintongyi.jlcrtvu.reponsitory;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.NoRepositoryBean;

/**
 * 基础存储库
 */
@NoRepositoryBean
public interface BaseRepository<T, ID> extends JpaRepository<T, ID>, JpaSpecificationExecutor<T> {
	<S extends T> Iterable<S> batchSave(Iterable<S> entitys);

	<S extends T> Iterable<S> batchUpdate(Iterable<S> entitys);
}
